home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / tcp_ip / rip2 / version.c < prev   
C/C++ Source or Header  |  1993-08-20  |  8KB  |  392 lines

  1. /* Version control information for "info" command display */
  2. /* Definition for processor type added */
  3. /* Cleanup of information display - K2MF 4/93 */
  4.  
  5. #include "global.h"
  6. #include "mbuf.h"
  7. #include "socket.h"
  8. #include "version.h"
  9.  
  10. char shortversion[] = "JNOS1.10x9";
  11.  
  12. #if (defined(MAILBOX) || defined(MBFWD))
  13. char MboxId[] = "[JNOS-1.10x9-HM$]\n";
  14. #endif /* MAILBOX || MBFWD */
  15.  
  16. char Version2[] = "by Johan. K. Reinalda, WG7J/PA3DIS\n";
  17. extern int Numrows,Numcols,Nusock;
  18.  
  19. #if defined LINUX
  20. char Version[] = "1.10x9 (Linux)";
  21. #elif defined CPU286
  22. char Version[] = "1.10x9 (80186)";
  23. #elif defined CPU386
  24. char Version[] = "1.10x9 (80386)";
  25. #else
  26. char Version[] = "1.10x9 (8088)";
  27. #endif
  28.  
  29. #ifdef ALLCMD
  30. int
  31. doinfo(argc,argv,p)
  32. int argc;
  33. char *argv[];
  34. void *p;
  35. {
  36.     tprintf("NOS %s, compiled %s %s containing:\n\n" ,Version,__DATE__,__TIME__);
  37.  
  38.     tputs("TCP Servers:");
  39.  
  40. #ifndef SERVERS
  41.     tputs("  None !\n");
  42. #endif /* ! SERVERS */
  43.  
  44. #ifdef SERVERS
  45.     tputs("  FINGER  SMTP  FTP");
  46.  
  47. #ifdef MAILBOX
  48.     tputs("  TELNET");
  49. #endif /* MAILBOX */
  50.  
  51. #ifdef ALLSERV
  52.     tputs("  TTYLINK  DISCARD  ECHO");
  53. #endif /* ALLSERV */
  54.  
  55.     tputs("\n");
  56.  
  57. #if (defined(CALLSERVER) || defined(CONVERS) || defined(NNTPS) || defined(POP2SERVER) || defined(POP3SERVER) || defined(RDATE))
  58.     tputs("            ");
  59.  
  60. #ifdef CALLSERVER
  61.     tputs("  CALLBOOK (CD-ROM)");
  62. #endif /* CALLSERVER */
  63.  
  64. #ifdef CONVERS
  65.     tputs("  CONVERS");
  66. #endif /* CONVERS */
  67.  
  68. #ifdef NNTPS
  69.     tputs("  NNTP");
  70. #endif /* NNTPS */
  71.  
  72. #ifdef POP2SERVER
  73.     tputs("  POP2");
  74. #endif /* POP2SERVER */
  75.  
  76. #ifdef POP3SERVER
  77.     tputs("  POP3");
  78. #endif /* POP3SERVER */
  79.  
  80. #ifdef RDATE
  81.     tputs ("  TIME");
  82. #endif /* RDATE */
  83.  
  84.     tputs ("\n");
  85. #endif /* CALLSERVER || CONVERS || NNTPS || POP2SERVER || POP3SERVER || RDATE */
  86.  
  87. #endif /* SERVERS */
  88.  
  89.     tputs("TCP Clients:  SMTP");
  90.  
  91. #ifdef ALLCMD
  92.     tputs("  FINGER");
  93. #endif
  94.  
  95. #ifdef ALLSESSIONS
  96.     tputs("  FTP  TELNET");
  97. #endif /* ALLSESSIONS */
  98.  
  99. #ifdef ALLSERV
  100.     tputs("  TTYLINK");
  101. #endif /* ALLSERV */
  102.  
  103.     tputs ("\n");
  104.  
  105. #if (defined(CALLCLI) || defined(CONVERS) || defined(NNTP) || defined(NNTPS) || defined(POP2CLIENT) || defined(POP3CLIENT) || defined(RLOGINCLI) || defined(RDATE))
  106.     tputs ("            ");
  107.  
  108. #ifdef CALLCLI
  109.     tputs("  CALLBOOK (CD-ROM)");
  110. #endif /* CALLCLI */
  111.  
  112. #ifdef CONVERS
  113.     tputs("  CONVERS");
  114. #endif /* CONVERS */
  115.  
  116. #if (defined(NNTP) || defined(NNTPS))
  117.     tputs("  NNTP");
  118. #endif /* NNTP || NNTPS */
  119.  
  120. #ifdef POP2CLIENT
  121.     tputs("  POP2");
  122. #endif /* POP2CLIENT */
  123.  
  124. #ifdef POP3CLIENT
  125.     tputs("  POP3");
  126. #endif /* POP3CLIENT */
  127.  
  128. #ifdef RLOGINCLI
  129.     tputs("  RLOGIN");
  130. #endif /* RLOGINCLI */
  131.  
  132. #ifdef RDATE
  133.     tputs ("  TIME");
  134. #endif /* RDATE */
  135.  
  136.     tputs ("\n");
  137. #endif /* CALLCLI || CONVERS || NNTP || NNTPS || POP2CLIENT || POP3CLIENT || RLOGINCLI || RDATE */
  138.  
  139. #ifdef LZW
  140.     tputs("    with LZW compression for TCP sockets\n");
  141. #endif /* LZW */
  142.  
  143. #if (defined(TCPACCESS) || defined(IPACCESS))
  144.     tputs("    with ");
  145.  
  146. #ifdef TCPACCESS
  147.     tputs("TCP");
  148. #endif /* TCPACCESS */
  149.  
  150. #if (defined(TCPACCESS) && defined(IPACCESS))
  151.     tputs("/");
  152. #endif /* TCPACCESS && IPACCESS */
  153.  
  154. #ifdef IPACCESS
  155.     tputs("IP");
  156. #endif /* IPACCESS */
  157.  
  158.     tputs(" access controls\n");
  159. #endif /* TCPACCESS || IPACCESS */
  160.  
  161.     tputs("UDP Servers:");
  162.  
  163. #if (!defined(DSERVER) && !defined(SERVERS))
  164.     tputs("  None !");
  165. #endif /* ! DSERVER && ! SERVERS */
  166.  
  167. #ifdef DSERVER
  168.     tputs("  DOMAIN NAMESERVER");
  169. #endif /* DSERVER */
  170.  
  171. #ifdef SERVERS
  172.     tputs("  REMOTE");
  173. #endif /* SERVERS */
  174.  
  175.     tputs("\n");
  176.  
  177. #ifdef MAILBOX
  178.  
  179. #ifdef TIPMAIL
  180.     tputs("TIP ");
  181. #endif /* TIPMAIL */
  182.  
  183.     tputs("Mailbox Server");
  184.  
  185. #ifdef XMODEM
  186.     tputs(" with Xmodem file transfer");
  187. #endif /* XMODEM */
  188.  
  189.     tputs("\n");
  190.  
  191. #ifdef MAILCMDS
  192.     tputs("Full Service BBS");
  193.  
  194. #if (defined(EXPIRY) || defined(MAILFOR) || defined(MBFWD) || defined(RLINE))
  195.     tputs(" with:");
  196. #endif /* EXPIRY || MAILFOR || MBFWD || RLINE */
  197.  
  198. #ifdef EXPIRY
  199.     tputs("\n     Message and BID expiry");
  200. #endif /* EXPIRY */
  201.  
  202. #ifdef MAILFOR
  203.     tputs("\n     'Mail For' beaconing");
  204. #endif /* MAILFOR */
  205.  
  206. #ifdef MBFWD
  207.     tputs("\n     AX.25 mail forwarding");
  208. #endif /* MBFWD */
  209.  
  210. #ifdef RLINE
  211.     tputs("\n     BBS 'R:-line' compatibility");
  212. #endif /* RLINE */
  213.  
  214.     tputs("\n");
  215. #endif /* MAILCMDS */
  216.  
  217. #endif /* MAILBOX */
  218.  
  219. #if (defined(CALLBOOK) || defined(AXIP) || defined(ENCAP))
  220.     tputs("Internet Services:");
  221.  
  222. #ifdef CALLBOOK
  223.     tputs("  BBS Callbook Client");
  224. #endif /* CALLBOOK */
  225.  
  226. #ifdef AXIP
  227.     tputs("  AX.25 Digipeating");
  228. #endif /* AXIP */
  229.  
  230. #ifdef ENCAP
  231.     tputs("  IP Encapsulation");
  232. #endif /* ENCAP */
  233.  
  234.     tputs("\n");
  235. #endif /* CALLBOOK || AXIP || ENCAP */
  236.  
  237. #ifdef HOPCHECK
  238.     tputs("Hopcheck IP path tracing\n");
  239. #endif /* HOPCHECK */
  240.  
  241. #ifdef RIP
  242.     tputs("RIP-2 Routing Protocol\n");
  243. #endif /* RIP */
  244.  
  245. #ifdef RSPF
  246.     tputs("Radio Shortest Path First Protocol (RSPF)\n");
  247. #endif /* RSPF */
  248.  
  249. #ifdef RARP
  250.     tputs("Reverse Address Resolution Protocol (RARP)\n");
  251. #endif /* RARP */
  252.  
  253. #ifdef LINUX
  254.     tprintf("%d sockets\n",Nusock);
  255. #else
  256.     tprintf("%d sockets, %d interrupt buffers of %d bytes\n",Nusock,Nibufs,Ibufsize);
  257. #endif
  258. #ifdef ASY
  259. #ifdef LINUX
  260.     tputs("Generic async (cua*) interface driver\n");
  261. #else
  262.     tputs("Generic async (8250/16450/16550) interface driver\n");
  263. #endif
  264.  
  265. #if (defined(KISS) || defined(AX25) || defined(NRS))
  266.     tputs("Async interface drivers:");
  267.  
  268. #ifdef KISS
  269.     tputs("  KISS TNC");
  270. #endif /* KISS */
  271.  
  272. #ifdef AX25
  273.     tputs("  AX.25");
  274. #endif /* AX25 */
  275.  
  276. #ifdef NRS
  277.     tputs("  NET/ROM TNC");
  278. #endif /* NRS */
  279.  
  280.     tputs("\n");
  281. #endif /* KISS || AX25 || NRS */
  282.  
  283. #endif /* ASY */
  284.  
  285. #ifdef NETROM
  286.     tputs("NET/ROM network interface\n");
  287. #endif /* NETROM */
  288.  
  289. #if (defined(PPP) || defined(SLIP))
  290.     tputs("Async IP drivers:");
  291.  
  292. #ifdef PPP
  293.     tputs("  Point-to-Point (PPP)");
  294. #endif /* PPP */
  295.  
  296. #ifdef SLIP
  297.     tputs("  Serial Line (SLIP)");
  298. #endif /* SLIP */
  299.  
  300.     tputs("\n");
  301. #ifdef DIALER
  302.     tputs("      with dialer code for SLIP\n");
  303. #endif /* DIALER */
  304.  
  305. #ifdef VJCOMPRESS
  306.     tputs("      with Van Jacobson compression for PPP/SLIP\n");
  307. #endif /* VJCOMPRESS */
  308.  
  309. #endif /* PPP || SLIP */
  310.  
  311. #ifdef PACKET
  312.     tputs("FTP Software's PACKET driver interface\n");
  313. #endif /* PACKET */
  314.  
  315. #ifdef APPLETALK
  316.     tputs("Appletalk interface for MacIntosh\n");
  317. #endif /* APPLETALK */
  318.  
  319. #ifdef ARCNET
  320.     tputs("ARCnet via PACKET driver\n");
  321. #endif /* ARCNET */
  322.  
  323. #ifdef DRSI
  324.     tputs("DRSI PCPA low-speed driver\n");
  325. #endif /* DRSI */
  326.  
  327. #ifdef EAGLE
  328.     tputs("Eagle card 8530 driver\n");
  329. #endif /* EAGLE */
  330.  
  331. #ifdef ETHER
  332.     tputs("Generic ethernet driver\n");
  333. #endif /* ETHER */
  334.  
  335. #ifdef HAPN
  336.     tputs("Hamilton Area Packet Network driver\n");
  337. #endif /* HAPN */
  338.  
  339. #ifdef HS
  340.     tputs("High speed (56 kbps) modem driver\n");
  341. #endif /* HS */
  342.  
  343. #ifdef PACKETWIN
  344.     tputs("Gracilis PackeTwin driver\n");
  345. #endif /* PACKETWIN */
  346.  
  347. #ifdef PC_EC
  348.     tputs("3-Com 3C501 Ethernet controller driver\n");
  349. #endif /* PC_EC */
  350.  
  351. #ifdef PC100
  352.     tputs("PAC-COM PC-100 driver\n");
  353. #endif /* PC100 */
  354.  
  355. #ifdef PI
  356.     tputs("PI SCC card with DMA driver (VE3IFB)\n");
  357. #endif /* PI */
  358.  
  359. #ifdef SCC
  360.     tputs("Generic SCC (8530) driver (PE1CHL)\n");
  361. #endif /* SCC */
  362.  
  363. #ifdef SLFP
  364.     tputs("SLFP via PACKET driver\n");
  365. #endif /* SLFP */
  366.     
  367. #ifdef TRACE
  368.     tputs("Hardware interface packet tracing code\n");
  369. #endif /* TRACE */
  370.  
  371. #ifdef STKTRACE
  372.     tputs("Stack tracing code\n");
  373. #endif /* STKTRACE */
  374.  
  375. #ifdef MULTITASK
  376. /*      tputs("The Russell Nelson modsets\n"); */
  377.     tputs("Multitasking capability when shelling out to MS-DOS\n");
  378. #endif /* MULTITASK */
  379.  
  380. #ifdef LINUX
  381.     tputs("Linux modifications by Brandon S. Allbery\n");
  382. #endif
  383.  
  384. #ifdef MONITOR
  385.     tputs("User port monitor trace mode\n");
  386. #endif
  387.  
  388.     return 0;
  389. }
  390.  
  391. #endif /* ALLCMD */
  392.